﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LstMuaHang.ascx.cs" Inherits="Web.Cms.Member.LstMuaHang" %>
<%@ Register TagPrefix="uc1" TagName="PagingAjax" Src="~/Cms/AjaxCP/Paging.ascx" %>
<%-- <script type="text/javascript">
     $(document).ready(function () {
         $("#<%=txtKeysearch.ClientID%>").autocomplete('/Layout/AutoComplateSearch/TimTheoTenBaiHat.ashx');
     });       
</script>--%>
<script type="text/javascript">
    $(function () {
        $("#<%=txtDatefrom.ClientID %>").datepicker({ showOn: 'button', buttonImage: '/images/calendar_1.gif', buttonImageOnly: true });
        $("#<%=txtDateTo.ClientID %>").datepicker({ showOn: 'button', buttonImage: '/images/calendar_1.gif', buttonImageOnly: true });
    });

</script>
<div id="uc_CMSContents">
<div class="fl">
    <asp:LinkButton ID="btnAdd" Font-Size="8px" Font-Bold="true" runat="server" SkinID="admin-ButtonInsert" OnClick="btnAdd_Click" /><asp:Label runat="server" ID="lblInsert" ></asp:Label> 
</div>
<div style="padding-bottom: 20px;" class="fl">
<p class="heading" style="margin-left:300px"><asp:Label runat="server" ID="lbHeader" Text="Danh Sách Mua Hàng"></asp:Label></p>        
</div>
<div class="clear8px" ></div>
<div style="margin-left: 250px">
    <div style="float:left;padding-right:10px;padding-left:10px;"><b>Ngày từ(mm/dd/yyyy): </b> <asp:textbox CssClass="input-txt" id="txtDatefrom" runat="server" Height="18px" Width="150"></asp:textbox></div>        
    <div style="float:left;padding-right:10px;padding-left:112px;"><b>Đến:</b> <asp:textbox CssClass="input-txt" id="txtDateTo" runat="server" Height="18px" Width="150"></asp:textbox></div>    
    <div style="float:left;padding-right:10px;padding-left:20px;"><asp:Button runat="server" ID="btnTimKiem" CssClass="Button_Search" onclick="btnTimKiem_Click"/></div>
    <div style="clear:both;padding-top:5px;"></div>
</div>
<br />
<div style="clear:both;"><asp:Label Font-Bold="true" ForeColor="red" Font-Size="11px" ID="lblMessage" runat="server"></asp:Label></div>


<asp:GridView ID="grdMuaHang" runat="server" SkinID="AdminGridView" 
    BackColor="White" AutoGenerateColumns="False" 
    onrowcommand="grdMuaHang_RowCommand" 
    onrowdatabound="grdMuaHang_RowDataBound" Width="1017px">
    <Columns>               
         <asp:BoundField HeaderText="STT">
            <ItemStyle HorizontalAlign="Center" Width="20px" />
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle />
        </asp:BoundField>  
        <asp:BoundField HeaderText="Mã Log" DataField="LogId" HeaderStyle-Width="120">
            <ItemStyle HorizontalAlign="Center" />
            <HeaderStyle HorizontalAlign="center" />            
        </asp:BoundField>          
        <asp:BoundField HeaderText="Ngày Mua" DataField="CreateDate" HeaderStyle-Width="120">
            <ItemStyle HorizontalAlign="Center" />
            <HeaderStyle HorizontalAlign="center" />            
        </asp:BoundField>
        <asp:BoundField HeaderText="Email" DataField="Email" HeaderStyle-Width="120">
            <ItemStyle HorizontalAlign="Center" />
            <HeaderStyle HorizontalAlign="center" />            
        </asp:BoundField>                          
        <asp:TemplateField HeaderText="Xóa" HeaderStyle-Width="20">
            <ItemTemplate>             
                <asp:Button ID="btnDelete" runat="server" CssClass="Icon_Delete" CommandArgument='<%# Eval("logId") %>' CommandName="Commanddelete" OnClientClick="return confirm('Bạn có chắc chắn xóa không ?')" />                   
            </ItemTemplate>
        <HeaderStyle Width="20px"></HeaderStyle>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<p style="text-align:center;">
    <br />            
    <asp:Label runat="server" ID="lbTotal" Font-Bold="true" Font-Size="15px" ForeColor="red"></asp:Label>            
    <br />  <br />
    <asp:Literal runat="server" ID="ltlPhanTrang"></asp:Literal>
    <br />
    <br />
</p>
<%--<table cellspacing="0" cellpadding="0" border="0" width="100%">       
    <tr>
        <td align="center" style="height: 21px">
            <br />            
            <uc1:PagingAjax ID="PagingAjax1" runat="server" />            
            <br />
        </td>
    </tr>
</table>--%>
</div>